<?php include "../../classes.inc" ?>

<?php include "../../constants.inc" ?>

<?php session_start(); ?>

<?php

	if ( isset($_SESSION['user']) == false && $_SESSION['user']->club_id != 100) {

		redirect("/tornooien/zt-php/view_players_list.php");

    }



    $user = $_SESSION['user'];

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Tornooien</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="../../assets/css/default.css" rel="stylesheet" type="text/css">

<script language="JavaScript" src="../../assets/js/ajax.js" />

</script>

</head>



<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" class="default">

<table border="0" cellpadding="0" cellspacing="0" width="100%">

    <tr>

        <td>

            <table border="0" cellpadding="0" cellspacing="0">

                <tr>

                    <td width="7">

                        <img src="../../assets/images/spacer.gif" height="1" width="7" ALT="">

                    </td>

                    <td width="150" align="left"><img src="../../assets/images/headerbar_kerst.gif" alt="" ></td>



                </tr>

                <tr>

                    <td colspan="2" height="12"><img src="../../assets/images/spacer.gif" alt="" height="12" width="1"></td>

                </tr>

            </table>

        </td>

        <td align="right" valign="top">

		<br/>

        <a href="../../logout.php?redirect=/tornooien/zt-php/view_players_list.php"><img src="../../assets/images/24x24/plain/exit.gif" border="0" alt="Log uit"></a>

        <br>&nbsp;<br>

        <span class="headerSmall">User <?=$_SESSION['user']->name?> logged in at <?=$user->login_date?>.</span>

</td>

		<td>&nbsp;</td>

	</tr>

</table>

<table border="0" cellpadding="0" cellspacing="0" width="100%" >

    <tr>

        <td align="left">

            <table border="0" cellpadding="0" cellspacing="0">

                <tr>

                    <td rowspan="2" width="7"><img src="../../assets/images/spacer.gif" alt="" height="1" width="7"></td>



					<td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_l.gif" height="14" width="14" ALT=""></td>

					<td nowrap rowspan="2" class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt="" height="3" width="3"><br/><a href="/newsbox.php" target="_top"><span class="tabName">Nieuwsbox</span></a></td>

					<td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_r.gif" height="14" width="14" ALT=""></td>

					<td rowspan="2" width=2><img src="../../assets/images/spacer.gif" alt="" height="1" width="2"></td>



					<td valign="top"><img src="../../assets/images/tabcorners/re_FFFFFF_l.gif" height="14" width="14" ALT=""></td>

                    <td nowrap rowspan="2" class="activeSpacer"><img src="../../assets/images/spacer.gif" alt="" height="3" width="3"><br/><a href="/tornooien/tornooien.html" target="_top"><span class="tabName">Tornooien</span></a></td>

                    <td valign="top"><img src="../../assets/images/tabcorners/re_FFFFFF_r.gif" height="14" width="14" ALT=""></td>

                    <td rowspan="2" width=2><img src="../../assets/images/spacer.gif" alt="" height="1" width="2"></td>



					<td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_l.gif" height="14" width="14" ALT=""></td>

                    <td nowrap rowspan="2" class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt="" height="3" width="3"><br/><a href="/bestuur/bestuur.php" target="_top"><span class="tabName">Bestuur</span></a></td>

                    <td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_r.gif" height="14" width="14" ALT=""></td>

                    <td rowspan="2" width=2><img src="../../assets/images/spacer.gif" alt="" height="1" width="2"></td>



					<td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_l.gif" height="14" width="14" ALT=""></td>

                    <td nowrap rowspan="2" class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt="" height="3" width="3"><br/><a href="/advalvas/index.html" target="_top"><span class="tabName">Ad Valvas</span></a></td>

                    <td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_r.gif" height="14" width="14" ALT=""></td>

                    <td rowspan="2" width=2><img src="../../assets/images/spacer.gif" alt="" height="1" width="2"></td>



					<td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_l.gif" height="14" width="14" ALT=""></td>

                    <td nowrap rowspan="2" class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt="" height="3" width="3"><br/><a href="http://www.frbe-kbsb.be/EloHist/FRBE_Fiche.php" target="_blank"><span class="tabName">ELO</span></a></td>

                    <td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_r.gif" height="14" width="14" ALT=""></td>

                    <td rowspan="2" width=2><img src="../../assets/images/spacer.gif" alt="" height="1" width="2"></td>



					<td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_l.gif" height="14" width="14" ALT=""></td>

                    <td nowrap rowspan="2" class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt="" height="3" width="3"><br/><a href="/clubs/clubs.php" target="_top"><span class="tabName">Clubs</span></a></td>

                    <td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_r.gif" height="14" width="14" ALT=""></td>

                    <td rowspan="2" width=2><img src="../../assets/images/spacer.gif" alt="" height="1" width="2"></td>



					<td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_l.gif" height="14" width="14" ALT=""></td>

                    <td nowrap rowspan="2" class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt="" height="3" width="3"><br/><a href="/jeugd/index.html" target="_top"><span class="tabName">Jeugd</span></a></td>

                    <td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_r.gif" height="14" width="14" ALT=""></td>

                    <td rowspan="2" width=2><img src="../../assets/images/spacer.gif" alt="" height="1" width="2"></td>



					<td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_l.gif" height="14" width="14" ALT=""></td>

                    <td nowrap rowspan="2" class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt="" height="3" width="3"><br/><a href="/links/index.php" target="_top"><span class="tabName">Links</span></a></td>

                    <td valign="top"><img src="../../assets/images/tabcorners/re_99CCFF_r.gif" height="14" width="14" ALT=""></td>

                    <td rowspan="2" width=2><img src="../../assets/images/spacer.gif" alt="" height="1" width="2"></td>

				</tr>

				<tr>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="activeSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="activeSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

					<td class="inactiveSpacer"><img src="../../assets/images/spacer.gif" alt=""></td>

				</tr>

			</table>

		</td>

	</tr>

	<tr>

		<td width="100%" bgcolor="#FFFFFF" colspan="13"><img border="0" width="30" src="../../assets/images/FFFFFF.gif" height="12" alt=""></td>

	</tr>

</table>



<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0" bgcolor="#FFFFFF">

	<tr>

		<td id="leftFiller" valign="top" height="100%" rowspan="3" bgcolor="#666666">

			<table border="0" cellpadding="0" cellspacing="0" height="100%" width="8px">

				<tr><td>&nbsp;</td></tr>

			</table>

		</td>

		<td id="header" valign="top" width="100%">

			<table border="0" width="100%" cellpadding="3" cellspacing="0" bgcolor="#10425b">
                <tr>
                    <td bgcolor="#666666" width="40%">
                        <?php include("inc_title.html"); ?>
                    </td>
                    <td bgcolor="#666666" align="right" valign="top">&nbsp;
                          <span class="headerSmall">Huidige versie PLAYER.DBF: <?=CURRENT_PLAYER_DBF?>
                        <?php
                        if (isset($user) && $user->club_id == 100) {
                        ?>
                        <br/>
                        <a class="headerSmall" href="import_player.php">laad andere versie</a>
                        <?php
                        }
                        ?>
                        </span>
                    </td>
                </tr>
            </table>
            <table align="center" border="0" width="100%" height="90%" cellpadding="0" cellspacing="0" style="border-top:#BCDD10 4px solid;">
                <tr>
                    <?php include("inc_sublinks.php"); ?> 
                </tr>

				<tr><td colspan="2" nowrap bgcolor="#BCDD10" height="4"><img src="../../assets/images/spacer.gif" alt="" height="1" width="1"></td></tr>

				<tr>

					<td>&nbsp;</td>

					<td valign="top">

						<table align="left" cellspacing="10" width="100%">

							<tr>

								<td>

                                    <?php

                                    if (isset($user) && $user->club_id != 100 ) {

                                         $result = mysql_query("select clubname from club where club_id = ".$user->club_id);

                                         $row = mysql_fetch_assoc($result);

                                         $clubname = $row['clubname'];

                                         $result = mysql_query("SELECT comment from zt_team where club_id = ".$user->club_id);

                                         $row = mysql_fetch_assoc($result);

                                         $clubComment = $row['comment'];

                                    ?>

                                    <span class="blackHeaderLarge">Zilveren Toren 2007 - <?=$clubName?></span>

                                    <br>&nbsp;<br>

                                	<span class="headerMedium" style="color:#993366">Eventuele wensen</span>

	                                <br>

                                    <textarea name="comment" rows="10" cols="130" onblur="storeClubComment(this.value, <?=$user->club_id?>, '')"><?=$clubComment?></textarea>

                                    <br>&nbsp;<br>

                                    <a href="edit_team_comment.php"><img src="../../assets/images/24x24/shadow/document_add.gif" border="0" alt="Stuur door naar tornooileider" />

                                    &nbsp;&nbsp;Stuur door naar tornooileider</a>
                                    
                                    <? } ?>

								</td>

							</tr>

						</table>

					</td>

				</tr>

				<tr>

			</table>

		</td>

	</tr>

</table>



<?php include("footer.php") ?>

